Other Classes

The following classes are available globally.

  • An MGLAttributedExpression object associates text formatting attibutes (such as font size or font names) to an NSExpression.

    Example

    let redColor = UIColor.red
    let expression = NSExpression(forConstantValue: "Foo")
    let attributes: [MGLAttributedExpressionKey: NSExpression] = [.fontNamesAttribute : NSExpression(forConstantValue: ["DIN Offc Pro Italic",
                                                                                                                        "Arial Unicode MS Regular"]),
                                                                  .fontScaleAttribute: NSExpression(forConstantValue: 1.2),
                                                                  .fontColorAttribute: NSExpression(forConstantValue: redColor)]
    let attributedExpression = MGLAttributedExpression(expression, attributes:attributes)
    
    See more

    Declaration

    Objective-C

    
    @interface MGLAttributedExpression : NSObject

    Swift

    class MGLAttributedExpression : NSObject
  • Information about an attribution statement, usually a copyright or trademark statement, associated with a map content source.

    See more

    Declaration

    Objective-C

    
    @interface MGLAttributionInfo : NSObject

    Swift

    class MGLAttributionInfo : NSObject
  • The MGLDefaultStyle defines the predefined vendor style

    See more

    Declaration

    Objective-C

    
    @interface MGLDefaultStyle : NSObject

    Swift

    class MGLDefaultStyle : NSObject
  • The MGLLoggingConfiguration object provides a global way to set this SDK logging levels and logging handler.

    See more

    Declaration

    Objective-C

    
    @interface MGLLoggingConfiguration : NSObject

    Swift

    class MGLLoggingConfiguration : NSObject
  • An overlay that is placed within a MGLMapSnapshot. To access this object, use -[MGLMapSnapshotter startWithOverlayHandler:completionHandler:].

    See more

    Declaration

    Objective-C

    
    @interface MGLMapSnapshotOverlay : NSObject

    Swift

    class MGLMapSnapshotOverlay : NSObject
  • The MGLNetworkConfiguration object provides a global way to set a base NSURLSessionConfiguration, and other resources.

    See more

    Declaration

    Objective-C

    
    @interface MGLNetworkConfiguration : NSObject

    Swift

    class MGLNetworkConfiguration : NSObject
  • The MGLTileServerOptions defines server properties such as URL etc…

    See more

    Declaration

    Objective-C

    
    @interface MGLTileServerOptions : NSObject

    Swift

    class MGLTileServerOptions : NSObject
  • The aim of this class is to provide the functionality of changing the camera state and converting between map view screen coordinates and geographical coordinates without changing the actual map view camera state.

    See more

    Declaration

    Objective-C

    
    @interface MGLMapProjection : NSObject

    Swift

    class MGLMapProjection : NSObject
  • A class containing information about the default User Location annotation view style.

    See more

    Declaration

    Objective-C

    
    @interface MGLUserLocationAnnotationViewStyle : NSObject

    Swift

    class MGLUserLocationAnnotationViewStyle : NSObject